package main

import (
	"encoding/json"
	"fmt"
)

type S struct {
	Name string
}

func main() {
	proof := new(S)
	proof.Name = "22"
	ret, _ := json.Marshal(proof)
	parse(string(ret), proof)
	fmt.Printf("%p", proof)
	fmt.Printf("%+v", proof)

}
func parse(s string, p *S) {
	res := new(S)
	_ = json.Unmarshal([]byte(s), p)
	fmt.Printf("%p\n", res)
	p = res

	fmt.Printf("%p\n", p)
}
